<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/tag/c.tld"%>
<div id="divMenuEdit">
<section class="panel">
	<div class="panel-body">
		<form action="${webRoot}/pageConfig/menu/save" id="formMenuConfig">
			<input type="hidden" name="pcode" value="${project.projectCode}"/>
			<input type="hidden" name="id" value="${menu.id}"/>
			<input type="hidden" name="parent" value="${menu.parent}"/>
			<div class="form-group">
		    	<label class="control-label">菜单代码</label>
		    	<input type="text" class="form-control" name="code" value="${menu.code }" <c:if test="${menu.code!=null}">readOnly</c:if>/>
		    </div>
		    <div class="form-group">
		    	<label class="control-label">菜单名称</label>
		    	<input type="text" class="form-control" name="name" value="${menu.name }"/>
		  	</div>
		  	<div class="form-group">
		  		<label class="control-label">菜单访问路径</label>
		    	<input type="text" class="form-control" name="url" value="${menu.url }"/>
		  	</div>
		  	<div class="form-group">
		    	<button type="button" class="btn btn-default pull-right" id="btnSaveMenu">保存</button>
		  	</div>
		</form>
	</div>
</section>
<script type="text/javascript">
$(function(){
	$('#btnSaveMenu').click(function(){
		$('#formMenuConfig').jfForm('submit',function(result){
			jf.modalCallback('#divMenuEdit',result);
		});
	});
})
</script>
</div>